//
//  ComponentsWindow.cpp
//  Editor
//
//  Created by Jeppe Nielsen on 10/19/14.
//  Copyright (c) 2014 Jeppe Nielsen. All rights reserved.
//

#include "ComponentsWindow.hpp"
#include <QtWidgets/QtWidgets>

std::string ComponentsWindow::GetName() { return "Components"; }

void ComponentsWindow::OnCreate() {
    

    QGroupBox* horizontalGroupBox = new QGroupBox();
    QHBoxLayout* layout = new QHBoxLayout();

    for (int i = 0; i < 4; ++i) {
        QPushButton* button = new QPushButton(QString("Button %1").arg(i + 1));
        layout->addWidget(button);
    }
    horizontalGroupBox->setLayout(layout);
    window->setWidget(horizontalGroupBox);
}




